
package com.fly.demo.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.jpa.domain.Specification;

import com.fly.core.entity.PageEntity;
import com.fly.demo.entity.User;

public interface UserService
{
    User get(Long id);
    
    void saveOrUpdate(User user);
    
    void delete(Long id);
    
    List<User> findAll();
    
    Page<User> findAll(PageEntity page);
    
    List<User> findByExample(Specification<User> specification, PageEntity page);
}
